package com.codestudy.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@ApiModel(value = "success", description = "文章表")
public class NoteDTO implements Serializable {
    /**
     * 文章ID
     */
    @ApiModelProperty(value = "id")
    private int id;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "userId")
    private int userId;

    /**
     * 文章标题
     */
    @ApiModelProperty(value = "title")
    private String title;

    /**
     * 文章内容
     */
    @ApiModelProperty(value = "msg")
    private String msg;

    /**
     * 文章图片数组
     */
    @ApiModelProperty(value = "img")
    private String[] img;

    /**
     * 文章附件
     */
    @ApiModelProperty(value = "annex")
    private String[] annex;

    /**
     * 文章类型
     */
    @ApiModelProperty(value = "type")
    private Integer type;

    /**
     * 文章概要
     */
    @ApiModelProperty(value = "outline")
    private String outline;

    /**
     * 文章创建时间
     */
    @ApiModelProperty(value = "createTime")
    private LocalDateTime createTime;

    /**
     * 文章修改时间
     */
    @ApiModelProperty(value = "updateTime")
    private LocalDateTime updateTime;
}
